import React from "react";
import { Button } from "antd";
import { useDispatch, useSelector } from "react-redux";
import { increment } from "../store/slices/testSlice";
import {Map, Marker, NavigationControl, InfoWindow} from 'react-bmapgl';
export default function TestRedux() {
    // let count = useSelector(state => state.test.count);
    // let dispatch = useDispatch();
    // const handleInrement = () => {
    //     dispatch(increment(10));
    // }
    return (
        <div>
            <Map center={{lng: 116.402544, lat: 39.928216}} zoom="11">
            <Marker position={{lng: 116.402544, lat: 39.928216}} />
            <NavigationControl /> 
            <InfoWindow position={{lng: 116.402544, lat: 39.928216}} text="内容" title="标题"/>
        </Map>
        </div>
    );
}
